drupal set message

86

 \Drupal::messenger()->addMessage($message, 'status');
 \Drupal::messenger()->addMessage($message, 'warning');
 \Drupal::messenger()->addMessage($message, 'error'); 
$messenger = \Drupal::messenger();
$messenger->addMessage('STUFF', $messenger::TYPE_WARNING);

Comments

Submit
0 Comments